const express = require("express");
const { getHotCities, addHotCity } = require("../controllers/cityController");
const { authenticateToken } = require("../middlewares/authMiddleware");

const router = express.Router();

// 获取所有热门城市
router.get("/hot", getHotCities);

// 添加热门城市
router.post("/hot", authenticateToken, addHotCity);

module.exports = router;
